from biliapi import *

AK = ""  # AppKey
SK = ""  # SecretKey
b = Biliapi(AK, SK)
b.set_return_url(False)
# print(b.request(APP_HOST + '/x/v2/space', {'vmid': 1}, android=True))
# b.set_return_url(True)
# print(b.request(APP_HOST + '/x/v2/space', {'vmid': 1}, android=True))
print(type(b))
a = b.get_auth()
a.login('usr', 'pwd')
print(a.access_key)
print(a.get_detail())
print(a.refresh_ak(a.access_key))
